from flask import Flask
from apps.front import bp as front_bp
import config
from exts import db, bootstrap


def create_app():
    app = Flask(__name__)
    app.config.from_object(config)
    app.register_blueprint(front_bp)
    db.init_app(app)
    bootstrap.init_app(app)
    return app


if __name__ == '__main__':
    app = create_app()
    app.run(port=5000)
